package site.immonkey.classscan.bean;

import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.List;

public class ScanResult {
    private String expression;
    private List<Class<?>> classList = new ArrayList<Class<?>>();
    private List<Method> methodList = new ArrayList<Method>();

    public String getExpression() {
        return expression;
    }

    public void setExpression(String expression) {
        this.expression = expression;
    }

    public List<Class<?>> getClassList() {
        return classList;
    }

    public void addClass(Class<?> c) {
        if (classList == null) classList = new ArrayList<Class<?>>();
        classList.add(c);
    }

    public void setClassList(List<Class<?>> classList) {
        this.classList = classList;
    }

    public List<Method> getMethodList() {
        return methodList;
    }

    public void addMethod(Method method) {
        if (methodList == null) methodList = new ArrayList<Method>();
        methodList.add(method);
    }

    public void setMethodList(List<Method> methodList) {
        this.methodList = methodList;
    }
}
